﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;

using Xc.DataAccess.AepCoapCore.Models;
using Xc.DataAccess.Core;

namespace Xc.Logics.AepCoap.Services
{
    /// <summary>
    /// AEP 添加设备
    /// </summary>
    public interface IAepUploadService
    {
        Result DeleteAsync(DeleteDevice deleteDevice);

        /// <summary>
        /// 更新设备中
        /// </summary>
        /// <param name="isUpdateOld"></param>
        /// <param name="oldDevice"></param>
        /// <param name="newDevcie"></param>
        /// <param name="action"></param>
        /// <returns></returns>
        Task UploadAsync(bool isUpdateOld, ObservableCollection<AddDeviceModel> newDevcie, Action<ExecuteResult> action, ObservableCollection<DeviceInfoList> oldDevice = null);
    }
}
